﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Data;
using System.Web.UI.WebControls;
using weikebuluo.Model;
using weikebuluo.DAL;
using weikebuluo.Common;
using weikeweixin.web.wechat.api.cs;

namespace weikebuluo.web.admin.groups
{
    public partial class groupadd : weikeweixin.web.admin.cs.adminbase
    {
        common apicommon = new common();
        protected void Page_Load(object sender, EventArgs e)
        {
            switch (Request.Form["action"])
            {
                case "groupadd":
                    groupadd1();
                    break;
            }
        }

        #region 添加分组
        /// <summary>
        /// 添加分组
        /// </summary>
        /// <returns></returns>
        public void groupadd1()
        {
            apicommon.groupadd(wechat_id, Request.Form["groupadd"]);
            Response.Write("{\"errno\":\"0\",\"tip\":\"添加成功！\",\"url\":\"../postmessage/posttext.aspx\",\"error\":\"发送失败\"}");
            Response.End();
        }
        #endregion 添加分组
    }
}